package nine;

/**
 * @author zzb
 * @since 2021-01-13
 */

//Test
public class Test {
  public static void main(String[] args) {
    Man man = new Man();
    ManDecoratorA manDecoratorA = new ManDecoratorA();
    ManDecoratorB manDecoratorB = new ManDecoratorB();

    manDecoratorA.setPerson(man);
    manDecoratorB.setPerson(manDecoratorA);
    manDecoratorB.eat();
    //男人在吃
    // 再吃一顿饭
    // ManDecoratorA 类
    //===============
    // ManDecoratorB 类
  }
}
